/*
 * Copyright © 2004-2014 chenYuan. All rights reserved.
 * @Website:wwww.jspx.net
 * @Mail:39793751@qq.com
 * @author: chenYuan , 陈原
 * @License: Jspx.net Framework Code is open source (LGPL)，Jspx.net Framework 使用LGPL 开源授权协议发布。
 * @jvm:jdk1.6+  x86/amd64
 *
 */
package com.jspx.txweb.dao;

import com.jspx.sober.SoberSupport;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: chenYuan
 * Date: 12-11-30
 * Time: 下午3:43
 * 模板DAO提供给普通对象使用,不用每一个对象都建一个DAO
 */
public interface TemplateDAO extends SoberSupport {
    String getNamespace();
    Class getClassType() throws Exception;
    Object load(Long id) throws Exception;
    Object get(Long id) throws Exception;
    boolean delete(Long[] ids) throws Exception;
    boolean updateSortType(Long[] ids, int sortType) throws Exception;
    boolean updateSortDate(Long[] ids) throws Exception;
    List getList(String[] field,String[] find,String term,String sortString,long uid,int page, int count) throws Exception;
    int getCount(String[] field,String[] find,String term,long uid) throws Exception;
}